package com.changgou.goods.controller;

public class CustomException extends RuntimeException{
    private String message;//存储异常信息


    public CustomException(String message){
        this.message = message;
    }
    @Override
    public String getMessage() {
        return message;
    }
    public void setMessage(String message) {
        this.message = message;
    }
    @Override
    public String toString() {
        return "CustomException{" +
                "message='" + message + '\'' +
                '}';
    }
}
